﻿using System;
using System.Collections.Generic;

using System.Text;

namespace ControlHorsetrackNamespace
{
        public class CoordenadaGps
        {
            public double dbLatitud { get; set; }   //example 34350503  (Latitude XXXX.XXXX)
            public double dbLongitud { get; set; } //example 058262990  (Longitude XXXXX.XXXX)
        }

        public class DatosGPS
        {
            public CoordenadaGps objCoordenadaDatosGPS;

            public string strImei { get; set; }           //example 354779035057430
            public string strIdCode { get; set; }     //The ID code can be 05*850 or 05*827.
            //05*850 is returned when the unit has received a request message from base to send a location message. 05*827 is returned if any input is activated.  
            public string strStatusCode { get; set; }    //example 000 - Ascii code 0 = 48STATUS CODE:Sent in ASCII code for text message. Add $30 to First, Second and Third Code.
            //; First code:; 1 = Battery power low <20%; 2 = Motion alert alarm; 4 = Park alert alarm; 8 = Entering Sleep mode message; 16 = Temperature from Digital Thermometer (DS18S20) above or below the configured value
            //; Second Code:; 1 = Panic Button Activated; 2 = Motion detection alarm enabled; 4 = Park detection alarm enabled; 8 = 24 Hour no motion alarm activated
            //; Third Code:; 1 = Vehicle traveled above MAX configured speed limit; 2 = AUX1 input activatedPDF created with pdfFactory Pro trial version www.pdffactory.com- 42 -42; 4 = ADC activated; 8 = 0 -> Positive temperature reading; 1 -> Negative temperature reading
            public string strUnitNumber { get; set; }     //PT35 (unit number)
            public string strValidate { get; set; }      //(A o V GPS Validate or non validate)
            public string strSurNor { get; set; }        //(South or north) S or N
            public string strEastWest { get; set; }      //(East or West) E or W
            public string strSpeed { get; set; }      //(Speed  XXX.X) example 0003
            public string strCourse { get; set; }        //example 0564		(Course in degrees)
            public string strHDOP { get; set; }       //example  015		(HDOP Horizontal dilution of precision)
            public string strGPSTimeDate { get; set; }      //042332		(GPS Time hh:mm:ss)      //180911		(GPS Date dd-mm-yy)
            public string strUnitVersion { get; set; }    //124		(unit version x.xx)
            public string strBattery { get; set; }        //99		(BAttery level status 00 a 99%)	
            public string strOtrasFun { get; set; }       //00		(ADC voltage - level houers count aux1 - ibutton id)	Otras funcionalidades.
        }



    
}
